Adding some more judges, here and there.
[and.git] / lib / Mi manual de algoritmos / version_actual / src / c++ / unicode.cpp
blob55c49709141c001644b8069c31d1560a690178e4
1 #include <iostream>
2 #include <cassert>
3 #include <stdio.h>
4 #include <assert.h>
5 #include <wchar.h>
6 #include <wctype.h>
7 #include <locale.h>
9 using namespace std;
11 int main(){
12 assert(setlocale(LC_ALL, "en_US.UTF-8") != NULL);
13 wchar_t c;
15 wstring s;
16 while (getline(wcin, s)){
17 wcout << L"LeĆ­ : " << s << endl;
18 for (int i=0; i<s.size(); ++i){
19 c = s[i];
20 wprintf(L"%lc %lc\n", towlower(s[i]), towupper(s[i]));
24 return 0;